package qnb.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import qnb.dao.GradeMapper;
import qnb.entity.Condition;
import qnb.entity.Grade;
import qnb.service.GradeService;


@Service
public class GradeServiceImpl implements GradeService {

	@Autowired
	private GradeMapper gradeMapper;

	@Override
	public List<Grade> selectAllGrade(String where, String order, int start, int rows) {
		return gradeMapper.selectAllGrade(where,order,start,rows);
	}

	@Override
	public List<Grade> selectAllGradeName() {
		return gradeMapper.selectAllGradeName();
	}

	@Override
	public Integer selectCountByGrade(String where) {
		return gradeMapper.selectCountByGrade(where);
	}

	@Override
	public Integer insertGrade(Grade grade) {
		return gradeMapper.insertGrade(grade);
	}

	@Override
	public Integer deleteGrade(Integer grade_id) {
		return gradeMapper.deleteGrade(grade_id);
	}

	@Override
	public Integer updateGrade(Grade grade) {
		return gradeMapper.updateGrade(grade);
	}

	@Override
	public Grade selectGradeById(Integer grade_id) {
		return gradeMapper.selectGradeById(grade_id);
	}

	@Override
	public List<Grade> selectAllForStu() {
		// TODO Auto-generated method stub
		return gradeMapper.selectAllForStu();
	}

}
